package com.jyb.qiyefuwu.api.net;

import com.jyb.qiyefuwu.BuildConfig;
import com.jyb.qiyefuwu.api.service.HomeApi;
import com.jyb.qiyefuwu.api.service.UserCenterApi;
import com.jyb.qiyefuwu.api.service.UserCenterPayApi;
import com.sgb.net.core.BaseCompatibleNet;


import okhttp3.OkHttpClient;

public class EnterPriseNewNet extends BaseCompatibleNet {

    private final HomeApi mService;
    private final UserCenterApi mUserCenterService;
    private final UserCenterPayApi mUserCenterPayApi;

    private EnterPriseNewNet() {
        mService = getService(HomeApi.class, mBaseUrl);
        mUserCenterService = getService(UserCenterApi.class, mBaseUrl);
        mUserCenterPayApi = getService(UserCenterPayApi.class, BuildConfig.PAY_URL);

    }


    private static class Single {
        private static final EnterPriseNewNet instance = new EnterPriseNewNet();
    }

    public static EnterPriseNewNet getInstance() {
        return EnterPriseNewNet.Single.instance;
    }

    @Override
    protected void handleBuilder(OkHttpClient.Builder builder) {
    }

    public HomeApi getService() {
        return mService;
    }

    public UserCenterApi getUserCenterService() {
        return mUserCenterService;
    }

    public UserCenterPayApi getmUserCenterPayApi() {return mUserCenterPayApi;}

}
